<?php

namespace BigVideo\Other\Singleton;

/**
 * 单例模式
 * Class Test
 * @package BigVideo\Other\Singleton
 */
class Test{
    public function main()
    {
        $aaa = Singleton::Instance();
        $bbb = Singleton::Instance();
        if($aaa === $bbb){
            echo '哈哈哈';
        }
    }
}

$test = new Test();
$test->main();